home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / dviware / kyocera / fonts.h < prev    next >
C/C++ Source or Header  |  1990-10-01  |  2KB  |  81 lines

  1. /* fonts.h
  2.  * This file contains the interface to fonts.c, a way for using at tex fonts
  3.  * on a printer in a modular way.
  4.  */
  5.  
  6. /* Initialization code.
  7.  * Should be called at the start of the printing program.
  8.  */
  9. extern f_init();
  10. /* f_init(printer,pgmname,dirvec,dirveclen,num,den,mag,options)
  11.  *   FILE *printer;
  12.  *   char *pgm_name,dirvec[];
  13.  *   int dirveclen;
  14.  *   long num,den,mag;
  15.  *   unsigned long options;
  16.  */
  17.  
  18. /* Called at the end of your program.
  19.  */
  20. extern f_term();
  21.  
  22. /* Options to f_define_font
  23.  */
  24.  
  25. /* Define a font for using.
  26.  * This can be called more than once for the same font.
  27.  */
  28. extern f_define_font();
  29. /* f_define_font(fontnum,options,area,name,mag,s,tfmchecksum)
  30.  *   char *area,*name;
  31.  *   unsigned long fontnum,options,mag,s,tfmchecksum;
  32.  */
  33.  
  34.  
  35. /* Hints as to what fonts are to be used.
  36.  * This is called once per page to give fonts module hints as what fonts
  37.  * are going to be used on this page.
  38.  */
  39. extern f_newpage();
  40. /* f_newpage(fontvec,charvec,veclen)
  41.  *   unsigned long fontvec[];
  42.  *   unsigned long charvec[][4];
  43.  *   int veclen;
  44.  */
  45.  
  46. /* Set a font as the current font.
  47.  */
  48. extern f_use_font();
  49. /* f_use_font(fontnum,font_space)
  50.  *   unsigned long fontnum;
  51.  *   long *font_space;
  52.  */
  53.  
  54. /* Hints as to what fonts are to be used.
  55.  * This is called once per page to give fonts module instrucions as what fonts
  56.  * and characters in those fonts have to be loaded for this page.
  57.  * "fontvec" contains a list of fonts used for this page
  58.  * "veclen" is the number of fonts used on this page
  59.  * "charvec" contains the per font information about the symbols needed
  60.  */
  61. extern int f_newpage();
  62. /* f_newpage(fontvec,charvec,veclen)
  63.  *   unsigned long fontvec[];
  64.  *   unsigned long charvec[][4];
  65.  *   int veclen;
  66.  */
  67.  
  68.  
  69. /* Make sure that the font info for this character is loaded.
  70.  * This is here so fonts could be incrementally loaded into the printer,
  71.  * if so desired by fonts.c.
  72.  * This procedure is called for every character output to the printer,
  73.  * So it should be fast in the standard case.
  74.  * Should return how much the point moves after setting this character.
  75.  */
  76. extern int f_use_char();
  77. /* f_use_char(ch,pxlwidth,devwidth)
  78.  *   unsigned long ch;
  79.  *   long *pxlwidth,*devwidth;
  80.  */
  81.